package com.yitiao.demo100;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

public class TestSort {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("a%");
        list.add("85%");
        list.add("95%");
        list.add("12%");
        list.add("1%");
        list.add("A%");
        List<String> collect = list.stream().sorted().collect(Collectors.toList());
        System.out.println(collect);
    }
}
